package com.kunya.product.service.cart;

import com.kunya.common.common.ServerResponse;
import com.kunya.product.vo.CartVo;

import javax.servlet.http.HttpServletRequest;

/**
 * @author zp
 * @Description:
 * @date 2018/5/28 11:24
 */
public interface ICartService {


    ServerResponse<CartVo> add(Long userId, Long productSpecNumber, Integer count,String tablePrefix);

    ServerResponse<CartVo> update(Long userId,Long productSpecNumber,Integer count,String tablePrefix);

    ServerResponse<CartVo> deleteProduct(Long userId,String productIds,String tablePrefix);

    ServerResponse<CartVo> list (Long userId,String tablePrefix);

    ServerResponse<CartVo> selectOrUnSelect(Long userId,Long productSpecNumber,Byte checked,String tablePrefix);

    ServerResponse< Integer> getCartProductCount(Long userId,String tablePrefix);
}
